import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(url, ...arg)

export default {
	// 客户信息
	modulePage(data) {
		return request('findProjectHistoryInfo', data, 'post')
	},
	// 提交表单 edit为true时为编辑，默认为新增
	submitForm(data, edit = false) {
		return request(edit ? 'updateProjectHistoryInfo' : 'insertProjectHistoryInfo', data)
	},
	// 删除模块
	moduleDelete(data) {
		return request('deleteOrderInfo', data)
	},
	// 获取模块详情
	moduleDetail(data) {
		return request('detail', data, 'get')
	}
}
